package com.atguigu.dao;

import com.atguigu.pojo.SysUser;

import java.sql.SQLException;

public interface UserDao {
    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     * @throws SQLException
     */
    SysUser login(String username,String password) throws SQLException;

    /**
     * 根据id查询用户
     * @param uid
     * @return
     */
    SysUser findUserById(Integer uid) throws SQLException;

    /**
     * 修改用户密码
     * @param uid
     * @param newpassword
     */
    void updateUserPassword(Integer uid, String newpassword) throws SQLException;
}
